import React, { Component } from 'react'

export default class index extends Component {
    render() {
        return (
            <div className="todo-header">
                <input type="text" placeholder="请输入你的任务名称，按回车键确认" onKeyDown={(e)=>{this.props.addData(e)}}/>
            </div>
        )
    }
}
